package cn.jbolt.ndemo.controller;


import cn.jbolt.ndemo.service.SmartTalkService;
import cn.jbolt.util.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/aiSmartTalk")
@Tag(name = "ai智能话术助手管理Controller")
public class SmartTalkController {

    @Autowired
    private SmartTalkService smartTalkService;

    @Operation(summary = "获取默认的提问", description = "获取默认的提问")
    @GetMapping("/getDefaultQuestion/{klbId}")
    public Result getDefaultQuestion(@PathVariable Long klbId){
        return smartTalkService.getDefaultQuestion(klbId);
    }
}
